﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Questionary.Model
{
    public class TotalCountData
    {
        private Dictionary<int, SelectionCount> _selectionCount = new Dictionary<int,SelectionCount>();
        private Dictionary<string ,int> _schoolCount = new Dictionary<string,int>();
        private Dictionary<int,List<string>> _content = new Dictionary<int,List<string>>(20);

        public Dictionary<int, SelectionCount> SelectionCount
        {
            get { return _selectionCount; }
            set { _selectionCount = value; }
        }

        public Dictionary<string, int> SchoolCount
        {
            get { return _schoolCount; }
            set { _schoolCount = value; }
        }

        public Dictionary<int, List<string>> Content
        {
            get { return _content; }
            set { _content = value; }
        }
    }

    public class SelectionCount
    {
        public SelectionCount()
        {
            OptionCount = new List<int>(8) {0,0,0,0,0,0,0,0 };//8个默认选项
        }

        /// <summary>
        /// 选项数量
        /// </summary>
        public List<int> OptionCount { get; set; }

    }

    public class SchoolCount
    {
        public SchoolCount()
        {
           
        }     
    }
}